package com.ionehe.cola.common.exception;

/**
 * 业务异常枚举
 *
 * @author 2022/1/24 <a href="mailto:a@ionehe.com">skedison</a>
 */
public class BusinessException extends RuntimeException {
    String error;

    public BusinessException() {
    }

    public BusinessException(String error) {
        super(error);
        this.error = error;
    }

    public BusinessException(Exception e) {
        super(e);
    }

    public BusinessException(String error, Exception e) {
        super(error, e);
    }

    public String getError() {
        return this.error;
    }
}
